home *** CD-ROM | disk | FTP | other *** search
/ Champak 49 / Volume 49 - JOGO DISK .iso / Games / bloop.swf / scripts / frame_1 / DoAction.as
Text File  |  2007-09-27  |  1KB  |  50 lines

  1. depth = 0;
  2. level = 1;
  3. lives = 6;
  4. score = 0;
  5. fps = 48;
  6. stopAllSounds();
  7. bombnum = 0;
  8. if(!settter)
  9. {
  10.    _quality = "medium";
  11.    mw = "mouse";
  12.    settter = true;
  13. }
  14. newMenu = new ContextMenu();
  15. newMenu.hideBuiltInItems();
  16. _root.menu = newMenu;
  17. checkFrame = function(which)
  18. {
  19.    if(which.frameStart != _root._currentframe)
  20.    {
  21.       which.removeMovieClip();
  22.    }
  23. };
  24. setFrame = function(which)
  25. {
  26.    which.frameStart = _root._currentframe;
  27. };
  28. createLevel = function()
  29. {
  30.    _root.clear();
  31.    attachMovie("background","background",++depth);
  32.    attachMovie("light","light",++depth);
  33.    light._x = _root.cannon._x;
  34.    light._alpha = 20;
  35.    attachMovie("cannon","cannon",++depth);
  36.    _root.cannon._x = Stage.width / 2;
  37.    _root.cannon._y = Stage.height - 50;
  38.    music = new Sound();
  39.    music.attachSound("music1");
  40.    music.onSoundComplete = function()
  41.    {
  42.       music.start();
  43.    };
  44.    attachMovie("bloopCreator","bloopCreator",++depth);
  45.    music.start();
  46.    attachMovie("bombout","bombout",++depth);
  47.    attachMovie("word","word",++depth);
  48.    attachMovie("hud","hud",++depth);
  49. };
  50.